package cn.lh.system.mapper;

import cn.lh.system.domain.Role;
import cn.lh.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lh
 * @since 2022-08-02
 */
public interface RoleMapper extends BaseMapper<Role> {

    void savaRoleMenus(@Param("roleId") Long roleId, @Param("menuIds") List<Long> menuIds);

    void saveRolePermissions(@Param("roleId") Long roleId, @Param("permissionIds") List<Long> permissionIds);

    void removeRoleMenuByRoleId(Long roleId);

    void removeRolePermissionByRoleId(Long roleId);
}
